home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  2.1 KB  |  94 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Scrap.p
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1985-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Scrap;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __SCRAP__}
  27. {$SETC __SCRAP__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ScrapIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __MACTYPES__}
  34. {$I MacTypes.p}
  35. {$ENDC}
  36.  
  37.  
  38. {$PUSH}
  39. {$ALIGN MAC68K}
  40. {$LibExport+}
  41.  
  42. {
  43.   _________________________________________________________________________________________________________
  44.    • CLASSIC SCRAP MANAGER API
  45.   _________________________________________________________________________________________________________
  46. }
  47.  
  48.  
  49. TYPE
  50.     ScrapStuffPtr = ^ScrapStuff;
  51.     ScrapStuff = RECORD
  52.         scrapSize:                SInt32;
  53.         scrapHandle:            Handle;
  54.         scrapCount:                SInt16;
  55.         scrapState:                SInt16;
  56.         scrapName:                StringPtr;
  57.     END;
  58.  
  59.     PScrapStuff                            = ^ScrapStuff;
  60. FUNCTION InfoScrap: ScrapStuffPtr;
  61.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  62.     INLINE $A9F9;
  63.     {$ENDC}
  64. FUNCTION UnloadScrap: SInt32;
  65.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  66.     INLINE $A9FA;
  67.     {$ENDC}
  68. FUNCTION LoadScrap: SInt32;
  69.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  70.     INLINE $A9FB;
  71.     {$ENDC}
  72. FUNCTION GetScrap(hDest: Handle; theType: ResType; VAR offset: SInt32): SInt32;
  73.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  74.     INLINE $A9FD;
  75.     {$ENDC}
  76. FUNCTION ZeroScrap: SInt32;
  77.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  78.     INLINE $A9FC;
  79.     {$ENDC}
  80. FUNCTION PutScrap(length: SInt32; theType: ResType; source: UNIV Ptr): SInt32;
  81.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  82.     INLINE $A9FE;
  83.     {$ENDC}
  84. {$ALIGN RESET}
  85. {$POP}
  86.  
  87. {$SETC UsingIncludes := ScrapIncludes}
  88.  
  89. {$ENDC} {__SCRAP__}
  90.  
  91. {$IFC NOT UsingIncludes}
  92.  END.
  93. {$ENDC}
  94.